
import jenkins

# from jenkinsapi.jenkins import Jenkins
# from serviceinfo.app_type_config import *
# server = jenkins.Jenkins('http://10.37.253.238:8080', username='admin', password='admin123')
# server = jenkins.Jenkins('http://10.37.251.96:8080', username='ops', password='ops@2018')

server = jenkins.Jenkins('http://10.37.253.238:8080', username='admin', password='admin123')

# s1 = jenkins.Jenkins("http://10.37.251.96:8080",username="ops",password="ops@2018")
# print(s1)

# version = server.get_version()
# print(version)

# jobs = server.get_jobs()
# print("jjjj", jobs)
# bb = "kkkk"
# bb.replace()

ccc_config = server.get_job_config(name='qding-dev_qds-partner-remote')
print(ccc_config)

# bb = server.create_job(cc,tomcat_config)
# print("bbbbb", bb)

# print(tomcat_config.replace("qdapptype","dev").replace("qdingapp","kkkkk"))
# print("-----------")
# print(jar_config)

